<#ftl>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Please sign in</title>
<link
	href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<link
	href="https://getbootstrap.com/docs/4.0/examples/signin/signin.css"	rel="stylesheet" crossorigin="anonymous" />
</head>
<body>
	<div class="container">
		<form class="form-signin" method="post" action="/login">
			<h3 class="form-signin-heading">Welcome to Snapex</h3>
			<#if errorMessage??>	
				<div class="alert alert-danger" role="alert">${errorMessage}</div>	
			</#if>	
			<#if message??>	
				<div class="alert alert-success" role="alert">${message}</div>	
			</#if>	
			<p> 
				<label for="username" class="sr-only">Staff Id</label> 
				<input type="text" id="username" name="username" class="form-control" placeholder="Your Staff ID" required autofocus/> 
			</p >
			<p> 
				<label for="password" class="sr-only">Password</label> 
				<input type="password" id="password" name="password" class="form-control" placeholder="Your AD Password" required/> 
			</p >	
			<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/> 
			<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
	  </form>
	</div>
</body>
</html>